package com.bawei.movie.vo;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

/**
 * 查询条件类
 * @author zhaoming.li
 *
 */
public class SearchCondition {
	private String name;
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date fromDate;
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date toDate;
	private String director;
	private Integer minPrice;
	private Integer maxPrice;
	private Integer decade;
	private Integer minFilmTime;
	private Integer maxFilmTime;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Date getFromDate() {
		return fromDate;
	}
	public void setFromDate(Date fromDate) {
		this.fromDate = fromDate;
	}
	public Date getToDate() {
		return toDate;
	}
	public void setToDate(Date toDate) {
		this.toDate = toDate;
	}
	public String getDirector() {
		return director;
	}
	public void setDirector(String director) {
		this.director = director;
	}
	public Integer getMinPrice() {
		return minPrice;
	}
	public void setMinPrice(Integer minPrice) {
		this.minPrice = minPrice;
	}
	public Integer getMaxPrice() {
		return maxPrice;
	}
	public void setMaxPrice(Integer maxPrice) {
		this.maxPrice = maxPrice;
	}
	public Integer getDecade() {
		return decade;
	}
	public void setDecade(Integer decade) {
		this.decade = decade;
	}
	public Integer getMinFilmTime() {
		return minFilmTime;
	}
	public void setMinFilmTime(Integer minFilmTime) {
		this.minFilmTime = minFilmTime;
	}
	public Integer getMaxFilmTime() {
		return maxFilmTime;
	}
	public void setMaxFilmTime(Integer maxFilmTime) {
		this.maxFilmTime = maxFilmTime;
	}
	@Override
	public String toString() {
		return "SearchCondition [name=" + name + ", fromDate=" + fromDate + ", toDate=" + toDate + ", director="
				+ director + ", minPrice=" + minPrice + ", maxPrice=" + maxPrice + ", decade=" + decade
				+ ", minFilmTime=" + minFilmTime + ", maxFilmTime=" + maxFilmTime + "]";
	}
	
	
}
